//
//  SDCaseManageModel.m
//  SuperDoctor
//
//  Created by 林森 on 16/7/7.
//  Copyright © 2016年 SD. All rights reserved.
//

#import "SDCaseManageModel.h"

@implementation SDCaseManageModel

- (void)encodeWithCoder:(NSCoder *)aCoder{

    [aCoder encodeObject:self.disease forKey:@"disease"];
    [aCoder encodeObject:self.basic forKey:@"basic"];
    [aCoder encodeObject:self.describe forKey:@"describe"];
    [aCoder encodeObject:self.imageIC forKey:@"imageIC"];
    [aCoder encodeObject:self.timeString forKey:@"timeString"];
    [aCoder encodeObject:self.array forKey:@"array"];

}

-(instancetype)initWithCoder:(NSCoder *)aDecoder{

    if (self = [super init]) {
        self.disease = [aDecoder decodeObjectForKey:@"disease"];
        self.basic = [aDecoder decodeObjectForKey:@"basic"];
        self.describe = [aDecoder decodeObjectForKey:@"describe"];
        self.imageIC = [aDecoder decodeObjectForKey:@"imageIC"];
        self.timeString = [aDecoder decodeObjectForKey:@"timeString"];
        self.array = [aDecoder decodeObjectForKey:@"array"];
    }
    return self;
}

- (NSMutableArray<UIImage *> *)array{

    if (_array == nil) {
        _array = [NSMutableArray array];
    }
    return _array;
}

@end
